package cn.weakup.thread.state;

/**
 * @author Dawn
 * @version 1.0.0
 * @desc 线程在Wait上等待
 * @date 2022/5/4
 */
public class WaitState implements Runnable{
    @Override
    public void run() {
        while (true) {
            synchronized (WaitState.class){
                try {
                    WaitState.class.wait();
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
